<template>
  <div v-if="false">
    <!-- 用于引入Windicss颜色工具类 -->
    <span class="text-fuchsia-600 bg-fuchsia-50 bg-fuchsia-100 bg-fuchsia-600"></span>
    <span class="text-purple-600 bg-purple-50 bg-purple-100 bg-purple-600"></span>
    <span class="text-blue-600 bg-blue-50 bg-blue-100 bg-blue-600"></span>
    <span class="text-cyan-600 bg-cyan-50 bg-cyan-100 bg-cyan-600"></span>
    <span class="text-teal-600 bg-teal-50 bg-teal-100 bg-teal-600"></span>
    <span class="text-green-600 bg-green-50 bg-green-100 bg-green-600"></span>
    <span class="text-lime-600 bg-lime-50 bg-lime-100 bg-lime-600"></span>
    <span class="text-orange-600 bg-orange-50 bg-orange-100 bg-orange-600"></span>
    <span class="text-rose-600 bg-rose-50 bg-rose-100 bg-rose-600"></span>
    <span class="text-pink-600 bg-pink-50 bg-pink-100 bg-pink-600"></span>
    <span class="text-slate-600 bg-slate-50 bg-slate-100 bg-slate-600"></span>
    <span class="text-neutral-600 bg-neutral-50 bg-neutral-100 bg-neutral-600"></span>
    <span class="text-red-600 bg-red-50 bg-red-100 bg-red-600"></span>
    <span class="text-yellow-600 bg-yellow-50 bg-yellow-100 bg-yellow-600"></span>
    <span class="text-sky-600 bg-sky-50 bg-sky-100 bg-sky-600"></span>
    <span class="text-indigo-600 bg-indigo-50 bg-indigo-100 bg-indigo-600"></span>
    <span class="filter grayscale"></span>
  </div>
</template>
<script setup lang="ts">
// import { onLaunch, onShow, onHide } from "@dcloudio/uni-app";
// onLaunch(() => {
//   console.log("App Launch");
// });
// onShow(() => {
//   console.log("App Show");
// });
// onHide(() => {
//   console.log("App Hide");
// });
import { useSystemStore, useUserStore} from '@/store'

const systemStore = useSystemStore()
const userStore = useUserStore()

onLaunch(() => {
  systemStore.getSystemInfo()
  userStore.setUserInfo(uni.getStorageSync('userInfo') ?? null)
  userStore.refreshToken()
})

onShow(() => {
  systemStore.getSystemInfo()
})
</script>
<style lang="scss">
  @import "vk-uview-ui/index.scss";
  @import "common/style/fontawesome.css";
  @import "common/style/animate.css";
</style>
